import 'package:flutter/material.dart';
import 'package:ost_flutter_module/class/store/address_page/store_address_edit_page.dart';
import 'package:ost_flutter_module/class/store/address_page/store_address_page.dart';
import 'package:ost_flutter_module/class/store/city_page/store_city_page.dart';
import 'package:ost_flutter_module/class/store/course_detail_page/store_course_detail_page.dart';
import 'package:ost_flutter_module/class/store/course_guide/store_course_guide_page.dart';
import 'package:ost_flutter_module/class/store/discount_page/store_discount_page.dart';
import 'package:ost_flutter_module/class/store/order_page/order_result_page/store_order_result_page.dart';
import 'package:ost_flutter_module/class/store/order_page/store_order_page.dart';
import 'package:ost_flutter_module/class/store/service_consult/store_course_service_consult_page.dart';
import 'package:ost_flutter_module/class/store/shop_cart/store_shop_cart_page.dart';
import 'package:ost_flutter_module/class/store/store_search/store_search_page.dart';

class GRouter {
  static const String city_page = 'city_page';
  static const String shop_cart = 'shop_cart';
  static const String order_page = 'order_page';
  static const String order_result_page = 'order_result_page';
  static const String address_page = 'address_page';
  static const String address_edit_page = 'address_edit_page';
  static const String discount_page = 'discount_page';
  static const String course_detial_page = 'course_detial_page';
  static const String course_guide_page = 'course_guide_page';
  static const String course_search_page = 'course_search_page';
  static const String course_service_consult_page =
      'course_service_consult_page';

  static Map<String, Widget Function(BuildContext)> routers() => {
        city_page: (BuildContext context) => StoreCityPage(),
        shop_cart: (BuildContext context) => StoreShopCartPage(),
        order_page: (BuildContext context) => StoreOrderPage(),
        order_result_page: (BuildContext context) => StoreOrderResultPage(),
        address_page: (BuildContext context) => StoreAddressPage(),
        address_edit_page: (BuildContext context) => StoreAddressEditPage(),
        discount_page: (BuildContext context) => StoreDiscountPage(),
        course_detial_page: (BuildContext context) => StoreCourseDetailPage(),
        course_guide_page: (BuildContext context) => StoreCourseGuidePage(),
        course_search_page: (BuildContext context) => StoreSearchPage(),
        course_service_consult_page: (BuildContext context) =>
            StoreCourseServiceConsultPage(),
      };
}
